﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace cstdx.Proto.Std;


/// <summary>
/// 证券数量请求包结构
/// </summary>
public class SecurityCountRequest : IMarshaler
{
	/// <summary>
	/// 未知用途的12字节数据
	/// </summary>
	public byte[] Unknown1 { get; set; } = new byte[12];

	/// <summary>
	/// 市场类型（16位无符号整数，小端序）
	/// </summary>
	public Exchange.MarketType Market { get; set; }

	/// <summary>
	/// 未知用途的4字节数据
	/// </summary>
	public byte[] Unknown2 { get; set; } = new byte[4];

	/// <summary>
	/// 请求包序列化输出
	/// </summary>
	/// <returns>序列化后的字节数组</returns>
	public byte[] Marshal()
	{
		return SerializationHelper.DefaultMarshal(this);
	}
}



